<template>
  <el-dialog
      :visible.sync="visible"
      width="26%"
      :before-close="onClose">
      <div slot="title" style="font-size: 14px;font-weight: 500;">
        批量导入
      </div>
      <div class="import-batc-main">
        <div class="batc-item">接入<el-input size="small" style="width: 88px;margin: 0 8px;"/>个留言（1~300）</div>
        <div class="batc-item">接入对话类型：
          <el-select v-model="typeIndex" placeholder="请选择" style="width: 120px;">
            <el-option
              v-for="item in types"
              :key="item.id"
              :label="item.title"
              :value="item.id">
            </el-option>
          </el-select>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="onClose">取消</el-button>
        <el-button type="primary" @click="donClose">保存</el-button>
      </span>
    </el-dialog>
</template>
<script>
export default {
  data() {
    return {
      form: {
        group_name: ''
      },
      typeIndex: 1,
      types: [
        { id: 1, title: '私聊+群聊'},
        { id: 2, title: '私聊'},
        { id: 3, title: '群聊'},
      ]
    }
  },
  props: ['visible'],
  methods: {
    onClose() {
      this.$emit('handCloseDialog');
    }
  },
}
</script>
<style lang="scss" scoped>
.import-batc-main {
  font-size: 14px;
  line-height: 22px;
  word-wrap: break-word;
  .batc-item:first-child {
    margin-bottom: 10px;
  }
}
</style>